package com.DHH.Entity.Base;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.hibernate.validator.constraints.Length;
import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Date;
import java.util.Set;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 实体类BaseUserInfo
 * 数据表base_tb_user_info
 * 用户信息
 * 2017-8-3 12:33:07
 * @author Administrator
 *
 */
@Table(name = "base_tb_user_info")
public class BaseUserInfo  implements Serializable {

	//
	@Id
	@GeneratedValue(generator = "JDBC")
	private Integer id;
	//余额
	@NotNull(message = "余额不能为空")
	private Float surplusMoney;
	//押金金额
	@NotNull(message = "押金金额不能为空")
	private Float securityMoney;
	//
	@NotNull(message = "不能为空")
	private Integer userId;


	public BaseUserInfo(){

	}

	public void setId(Integer id){
		this.id=id;
	}

	public Integer getId(){
		return this.id;
	}
	public void setSurplusMoney(Float surplusMoney){
		this.surplusMoney=surplusMoney;
	}

	public Float getSurplusMoney(){
		return this.surplusMoney;
	}
	public void setSecurityMoney(Float securityMoney){
		this.securityMoney=securityMoney;
	}

	public Float getSecurityMoney(){
		return this.securityMoney;
	}
	public void setUserId(Integer userId){
		this.userId=userId;
	}

	public Integer getUserId(){
		return this.userId;
	}

	@Override
	public String toString() {
		return "BaseUserInfo{" +
				"id=" + id +
				", surplusMoney=" + surplusMoney +
				", securityMoney=" + securityMoney +
				", userId=" + userId +
				'}';
	}
}
